import request from '@/utils/request'

// 获取投诉建议分页
export function complaintSuggestionPage(data) {
	return request({
		url: '/base/complaintsuggestion/page',
		method: 'get',
		data: data
	})
}
// 删除投诉建议
export function complaintSuggestionDelete(data) {
	return request({
		url: '/base/complaintsuggestion/delete',
		method: 'post',
		data: data
	})
}

// 提交投诉建议表单 edit为true时为编辑，默认为新增
export function complaintSuggestionSubmitForm(data, add = true) {
	return request({
		url: '/base/complaintsuggestion/' + (add ? 'add' : 'edit'),
		method: 'post',
		data: data
	})
}
